package com.ten.stat.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ten.stat.vo.TbMemberVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author ：王薪伟
 * @date ：Created in 2022/12/9 11:09
 * @description：
 * @modified By：
 * @version:
 */
public interface TbMemberDao extends BaseMapper<TbMemberVo> {

    @Select(value = "SELECT is_type AS isType, COUNT(id) AS total FROM tb_member GROUP BY is_type")
    List<TbMemberVo> selectMemberType();
}
